package com.sgb.kjwl.view.ui.adapter.packers;

import android.content.Context;

import com.sgb.kjwl.R;
import com.sgb.kjwl.databinding.ItemPackerFirstContentTitlePictureBinding;
import com.sgb.link.entity.PickFilterEntity;
import com.sgb.kjwl.view.ui.adapter.YoungBaseRecycleAdapter;
import com.swgk.core.recyclerview.adapter.ItemViewHolder;

import java.util.List;

/**
 * description:工队首页的会员成员,会员和关注的adapter
 * @author younghow
 * @date 2021/9/7
 */
public class TeamMainPageTitleAdapter extends YoungBaseRecycleAdapter<PickFilterEntity> {


    public TeamMainPageTitleAdapter(Context context, List<PickFilterEntity> data) {
        super(context, R.layout.item_packer_first_content_title_picture, data);
    }

    @Override
    public void convert(ItemViewHolder holder, PickFilterEntity servicesCompanyBean) {
        ItemPackerFirstContentTitlePictureBinding mBinding = (ItemPackerFirstContentTitlePictureBinding) holder.getmBinding();
        mBinding.ivTeamMainPicture.setBackgroundResource(servicesCompanyBean.getNum());
    }
}
